// vite.config.js
import { defineConfig } from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite@4.4.9_@types+node@20.4.7_sass@1.65.1/node_modules/vite/dist/node/index.js";
import vue from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/@vitejs+plugin-vue@4.2.3_vite@4.4.9_vue@3.3.4/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "node:path";
import AutoImport from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/unplugin-auto-import@0.16.6_rollup@2.79.1/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/unplugin-vue-components@0.25.1_rollup@2.79.1_vue@3.3.4/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ElementPlusResolver } from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/unplugin-vue-components@0.25.1_rollup@2.79.1_vue@3.3.4/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import viteCompression from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite-plugin-compression@0.5.1_vite@4.4.9/node_modules/vite-plugin-compression/dist/index.mjs";
import { viteMockServe } from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite-plugin-mock@2.9.6_mockjs@1.1.0_rollup@2.79.1_vite@4.4.9/node_modules/vite-plugin-mock/dist/index.js";
import commonjs from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite-plugin-commonjs@0.8.2/node_modules/vite-plugin-commonjs/dist/index.mjs";
import VueSetupExtend from "file:///F:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite-plugin-vue-setup-extend@0.4.0_vite@4.4.9/node_modules/vite-plugin-vue-setup-extend/dist/index.mjs";
var __vite_injected_original_dirname = "F:\\pj\\sy\\check\\vite-vue3";
var vite_config_default = defineConfig({
  base: "./",
  server: {
    host: "0.0.0.0"
  },
  plugins: [
    vue(),
    commonjs(),
    AutoImport({
      resolvers: [ElementPlusResolver()],
      imports: ["vue", "vue-router"]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    }),
    VueSetupExtend(),
    viteCompression({
      verbose: true,
      disable: false,
      threshold: 10240,
      algorithm: "gzip",
      ext: ".gz"
    }),
    viteMockServe({
      mockPath: "./src/api/mock",
      force: false,
      mocks: [
        {
          url: "/api/data",
          method: "get",
          response: {
            code: 200,
            data: { message: "Hello from mock API!" }
          }
        },
        {
          url: "https://shopapi.ktvit.cn",
          // 也可以拦截带有 http 的请求
          method: "get",
          response: {
            code: 200,
            data: { message: "Hello from mock API with http!" }
          }
        }
      ]
    })
  ],
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: "@import '@/style/var.scss';"
      }
    }
  },
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "./src")
    },
    extensions: [".js", ".jsx", ".json", ".vue"]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJGOlxcXFxwalxcXFxzeVxcXFxjaGVja1xcXFx2aXRlLXZ1ZTNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkY6XFxcXHBqXFxcXHN5XFxcXGNoZWNrXFxcXHZpdGUtdnVlM1xcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRjovcGovc3kvY2hlY2svdml0ZS12dWUzL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12d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